﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace DataBaseReverseGenerator.DataBaseModel
{
    [Serializable]
    public class Column
    {
        #region Ctor

        public Column()
        {
        }

        public Column(string name)
        {
            this.name = name;
        }

        public Column(string name, System.Data.OleDb.OleDbType type) : this(name)
        {
            this.type = type;
        }

        #endregion

        #region Properties

        private string name;
        [XmlAttribute()]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private System.Data.OleDb.OleDbType type;
        [XmlAttribute()]
        public System.Data.OleDb.OleDbType Type
        {
            get { return type; }
            set { type = value; }
        }

        private int size;
        [XmlAttribute()]
        public int Size
        {
            get { return size; }
            set { size = value; }
        }

        private bool isIdentity;
        [XmlAttribute()]
        public bool IsIdentity
        {
            get { return isIdentity; }
            set { isIdentity = value; }
        } 

        #endregion

    }
}
